<div class="content_spacing">
	{* edit domain ............................................................................................*}
	<h3>{$smarty.config.ProjectDomains_edit_domain}</h3>
</div>
<div class="contentbox">
	<div class="contentbox_header">&nbsp;</div>
	<div class="contentbox_inner">
		<form id="project_domaineditform_{$project.project_id}" accept-charset="utf-8">
		<input type="hidden" name="project_id" id="project_id" value="{$project.project_id}" />
		<input type="hidden" name="project_domain_id" id="project_id" value="{$project_domain.project_domain_id}" />
			
			{* Domainname *}
			<div class="box_label">
				{$smarty.config.ProjectDomains_new_domain_name}
			</div>
			<div class="box_content">
				<input type="text" name="project_domain_name" value="{$project_domain.project_domain_name}" class="FormFieldInput" style="width: 167px;" />
				<span id="edit_project_domain_name_error_{$project.project_id}" class="error"></span>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
			<br />
			
			{* Target *}
			<div class="box_label">
				{$smarty.config.ProjectDomains_new_domain_target}
			</div>
			<div class="box_content">
				<select size="1" name="project_domain_key_obj_id" id="project_domain_key_obj_id" style="width: 180px;">
					{foreach from=$navitree item=entry}
						<option value="{$entry.value}" {if $project_domain.project_domain_key_obj_id==$entry.value}selected="selected"{/if}>{$entry.name}</option>
					{/foreach}			
				</select>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
			<br />
			
			{* Language *}
			<div class="box_label">
				{$smarty.config.ProjectDomains_new_domain_language}
			</div>
			<div class="box_content">
				<select size="1" name="project_domain_key_lang_id" id="project_domain_key_lang_id" style="width: 180px;">
					{foreach from=$languages item=lang}
						{if $lang.project_language_key_project_id != ""}
							<option value="{$lang.lang_id}" {if $project_domain.project_domain_key_lang_id==$lang.lang_id}selected="selected"{/if}>{$lang.lang_name}</option>
						{/if}
					{/foreach}		
				</select>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
			<br />
			
			{* delete entry *}
			<div class="box_label">
				{$smarty.config.ProjectDomains_delete_domain}
			</div>
			<div class="box_content">
				<input type="checkbox" id="del_project_domain" class="formtype_checkbox" name="del_project_domain" value="1" /> 
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
			<br />
			
			{* save *}
			<div class="box_label">
				&nbsp;
			</div>
			<div class="box_content">
				<input type="button" name="submitbtn" value="{$smarty.config.ProjectDomains_submit_save}" class="submitbtn" onclick="{strip}{literal}
					xajax.request({
						ccdsclass:'ccdsProject',ccdsfun:'ProjectDomainEditSave'},{parameters:[
						{/literal}
						xajax.getFormValues('project_domaineditform_{$project.project_id}')
						{literal}
						]});
				{/literal}{/strip}" />
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
			<br />
		</form>
	</div>
</div>
<div class="clear"></div>
<br />
